package random.fox.p2p.bean;

import java.io.Serializable;

/**
 * Created by delong on 2015/3/18.
 */
public class PersonalityLabel implements Serializable {
    private String lable;
    private int count;

    public PersonalityLabel() {
    }

    public PersonalityLabel(String lable, int count) {
        this.lable = lable;
        this.count = count;
    }

    public String getLable() {
        return lable;
    }

    public void setLable(String lable) {
        this.lable = lable;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PersonalityLabel that = (PersonalityLabel) o;

        if (lable != null ? !lable.equals(that.lable) : that.lable != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return lable != null ? lable.hashCode() : 0;
    }
}
